package com.kaishengit.service;

import java.util.List;

import com.kaishengit.dao.GoalDao;
import com.kaishengit.entity.Goal;

public class GoalService {

	private GoalDao goalDao = new GoalDao();
	
	public List<Goal> findAllGoal(int projectId){
		return goalDao.findByProjectId(projectId);
	}

	public Goal findGoalById(int goalId) {
		return goalDao.findGoalById(goalId);
	}

	public void updateGoal(Goal goal) {
		goalDao.update(goal);
	}

	public void save(Goal goal) {
		
		goalDao.save(goal);
		
	}
	
}
